'''
常用封装函数
'''
from time import sleep

from   selenium import webdriver
from selenium.webdriver.common.by import By


class BasePage:
    #浏览器封装函数
    def __init__(self,sends=10):
        # 利用反射技术生成浏览器对象
        self.driver = webdriver.Chrome()
        self.driver.get("http://192.168.124.48/index.php/Admin")
        self.driver.maximize_window()
        self.driver.implicitly_wait(sends)
    def loca_ele(self,*args):
        ele=self.driver.find_element(*args)
        return ele











